package com.example.shopspring.Mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.shopspring.Model.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    @Select("select * from products where genre = #{genre}")
    List<Product> selectByGenre(String genre);
}
